<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>支付详情</title>
    <meta charset="UTF-8">
    <script th:src="@{/common/js/jquery.min.js}" type="text/javascript"></script>
    <link rel="stylesheet" th:href="@{/common/layui/css/layui.css}">
</head>
<body>
<div style="text-align: center;margin-top: 300px;" id="msg">
<!--    <img src="/image/success.png" width="200" href="500">-->
<!--    <p style="margin-top: 50px;font-size: 18px;">支付成功 &nbsp;&nbsp;<a href="/page/logo.do" class="layui-btn layui-btn-normal">返回</a> &nbsp;&nbsp;<a href="#" class="layui-btn layui-btn-primary">查看订单</a></p>-->
</div>
<script th:inline="javascript">
    var code = [[${code}]];
    var msg = [[${msg}]];
    console.log(code,msg);
    var html = ""
    if(code==1){
        html +="<img src=\"/image/success.png\" width=\"200\" href=\"500\">\n" +
            "    <p style=\"margin-top: 50px;font-size: 18px;\">支付成功 &nbsp;&nbsp;<a href=\"/page/logo.do\" class=\"layui-btn layui-btn-normal\">返回</a> &nbsp;&nbsp;<a href=\"/page/myOrder.do\" class=\"layui-btn layui-btn-primary\">查看订单</a></p>\n";
    }else if(code==2){
        html +='<img src=\"/image/sbai.png\" width=\"200\" href=\"500\">\n' +
            '    <p style=\"margin-top: 50px;font-size: 18px;\">'+msg+'&nbsp;&nbsp;<a href=\"/page/logo.do\" class=\"layui-btn layui-btn-normal\">返回</a></p>\n';
    }else {
        html += "<img src=\"/image/sbai.png\" width=\"200\" href=\"500\">\n" +
            "    <p style=\"margin-top: 50px;font-size: 18px;\">支付失败 &nbsp;&nbsp;<a href=\"/page/logo.do\" class=\"layui-btn layui-btn-normal\">返回</a></p>\n"
    }
    $('#msg').html(html);
</script>
</body>
</html>